/*
Copyright (c)2009 Seesmic, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package com.seesmic.twhix
{
	import flash.events.Event;

	public class XMPPEvent extends Event
	{
		public static const MESSAGE:String = "xmpp-message";
		public static const MESSAGE_MUC:String = "xmpp-message-muc";
		public static const PRESENCE:String = "xmpp-presence";
		public static const SESSION:String = "xmpp-session";
		public static const SECURE:String = "xmpp-secure";
		public static const AUTH_FAILED:String = "xmpp-unauthed";
		public static const AUTH_SUCCEEDED:String = "xmpp-authed";
		public static const PRESENCE_AVAILABLE:String = "xmpp-presence-available";
		public static const PRESENCE_UNAVAILABLE:String = "xmpp-presence-unavailable";
		public static const PRESENCE_ERROR:String = "xmpp-presence-error";
		public static const PRESENCE_SUBSCRIBE:String = "xmpp-presence-subscribe";
		public static const ROSTER_ITEM:String = "xmpp-roster-item";
		public static const ROSTER_ERROR:String = "xmpp-roster-error";
		public static const BOUND:String = "xmpp-jid-bound";
		
		public var stanza:Object;
		public function XMPPEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, stanza:Object=null)
		{
			this.stanza = stanza;
			super(type, bubbles, cancelable);
		}
		
	}
}
